-- GENERATED SPELL FOR [Plague Eruptor] --


function spell0_27611(pUnit, Event) --@Plague Cloud,n/a--
pUnit:FullCastSpellOnTarget(49350,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27611', 21000, 1)
end

function Sorts_27611(pUnit, Event)
local choix_sorts_27611 = math.random(0, 0)
if choix_sorts_27611 == 0 then
pUnit:RegisterEvent('spell0_27611', 1, 1)
end
end

function mob27611_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27611', math.random(1500, 3000), 1)
end

function mob27611_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27611_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27611_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27611, 1, 'mob27611_Action')
RegisterUnitEvent(27611, 2, 'mob27611_Leave')
RegisterUnitEvent(27611, 3, 'mob27611_Kill')
RegisterUnitEvent(27611, 4, 'mob27611_Die')
